package com.example.algorithmdemo;

import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Build;
import android.os.Bundle;

import com.example.algorithmdemo.leetcode.LeetCode;
import com.example.algorithmdemo.slt.STLNode;
import com.example.algorithmdemo.test.Test;

import java.util.ArrayList;
import java.util.Arrays;

public class MainActivity extends AppCompatActivity {

    @RequiresApi(api = Build.VERSION_CODES.N)
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        STLNode.testSingleLinkTable();


        Test.huffmanAnswer(5, new ArrayList<>(Arrays.asList(5,15,40,30,10)));
        Test.BellmanFord();

        ///1.求两个链表的交点
        LeetCode.leetCode_link_intersection_test();

        ///2.反转链表
        LeetCode.testReverseLink();
    }

    private void  eorTest(){

    }
}